//
//  TappModel.m
//  TestJSPay
//
//  Created by hongliang on 16/3/25.
//  Copyright © 2016年 hongliang. All rights reserved.
//

#import "TappModel.h"

@implementation TappModel

- (void)wxpay:(NSString*)args {
    //NSLog(@"args is %@", args);
    id data = [NSJSONSerialization JSONObjectWithData:[args dataUsingEncoding:NSUTF8StringEncoding] options:0 error:nil];
    if ([data isKindOfClass:[NSDictionary class]] &&
        self.payBlock) {
        self.payBlock([data objectForKey:@"order_sn"], [data objectForKey:@"need_pay"]);
    }
}

@end
